fix bug in reasoning about query.checkCondition()
Merge branch 'develop' of https://github.com/robrtj/knowledgerepresentation into develop