[support.cftree] Improved CF-Tree, fixed bugs, added unit-tests