Update binarysearch.m