change java interface to return list of lists (no tuples in java and type conversion makes things tricky)