binarySort working v1