recursive insertion sort not really working, bad ruby implementation