insertion sort in java + tests