Update solution of insertion sort advanced analysis