Utilities to find centroid

Also, add dependencies to conifer.
Add auto monitoring of test cases