cleanup nested percolator
remove BufferedReader and add tests
add comments and license header
remove custom MemoryIndex, it is never reset anyway
add java test for nested percolator