Adding continuous functionality.

In this pull we made changes on dtree for continuous cases.