insertion sort java c algorithms and data structures