Add unit tests for compute_visit_tree and verfiy reversed curves.
Adding ability to have empty curve stored in the curve obj.
Merge remote-tracking branch 'origin/unit_tree' into dev

Conflicts:
	matlab/unit_tests.m