some minor points - indices - and update on insertion sort
most of insertion sort worked - still some minor bugs