added working and non-working search fucntions with proper comments. Working search fucntions are not that pythonic and very less readable. needs a lot improvement
removed non-working code of search functions and also their relevant comments