updated readme.md and added patternsearching algo