Added method to store results for search into a file.
Made relelvant changes to search.py to call the new method.