Improved Key Search
Implemented Key Search Algorithm.