Implementing a model-generation based theorem prover MGTP in Java