merge sorting done for integer elements