attempt to gather parent information

modified ClassVisitor to gather parents and used after gathering
classses in semantic analyzer to set the parents