added a test for boundary detection error measure
Changing algorithms to make images with 3D dimensions work also