insertoin sort pointer