Shape Understanding System Knowledge Implementation and Learning