Search Insert Position for a given value in a given array