moving methods related to management of sequence of terms from PrologUtilTerm to ListTerm. Updating tests accordingly
Refactoring the Query class. Brainstorming mechanisms for making it more efficient