Added binary search code.