Multiple similarity solutions for solidification and melting