Sillysort problem solution