updated BookFactory and searchBook

added createMagazines() method of BookFactory
fixed searchBook methods, now it searchs books by only one term (either
author or title or genre)