refactor & implementing reasoning tree.
Merge branch 'develop' of https://github.com/robrtj/knowledgerepresentation into develop