Added keyPressedEvent for OneByOne algo
added binarySearch algo