binnary search implemented with many programming languages