Added DoubleFactor class and test.  Included a test for copying Factors in FactorTest