Only calculating analytical derivatives

This is a regtest where the wrong derivatives were put in
we are testing smac with planes
Fixed a bug in dfs clustering with vectors