Gene search indexing in Java