Revised the implementation of knowledge-base in order to compile a huge knowledge-base.