Added a class for Constants into the common directory, renamed TreeDetectionAlgorithm to indicate that it is an interface, deleted unused class.

Implemented Algorithm Manager.