Used binary search and insertion at point for slower version.