Longest words and search function added.