binSearch is now generic
removed console.log
fixed indentation
Merge pull request #590 from aodn/bin_search_fix

binSearch is now generic