Implemented insertionSort algorithm to HackerRank