add license and BinarySearch