Finished Depth first incremental mining implementation.