refactored searchInsertPosition and added find range