Added factor and Graph and did CS4621 Summer 2013 Q2