insert a naive implementation of insertion sort