Similarity solution of the Boussinesq equation