yet another simple program which sorts