added longest word search algorithm
added longest word search algorithm