Added binary search, small tweaks to sorting algorithms