Bin search opt

 * Utilizing binary search for getDatesOnDay
 * binSearch is a global function, for everybody to use