Solidification of a binary mixture in a square cavity with a free surface