modified insert sort - corrected assignment of inserVal