added a curvetreefactory class declaration for creating curve trees in a lazy manner
modified curve tree constructor to take a dummy arguments stucture which will be used in the future
added curve tree factory logic and new curve tree constructor logic