still some bugs in retrieval method as well as insert method. at least junit test still does not pass for insert and retrieval has strange behaviour if a prefix is retieved and a word containing the prefix is also in the resultset. both bugs should be easy to fix. last fix of updateTop function is not very efficient