fixed the BinarySearchTemplate & leetcode searchInsert solution