wrote backwards inversion sort