add scala implementation of insertion sort