Format existing code
Various main.cpp changes

Overlay display is now handled with cv::imshow; writing images is
optional. Some types are redefined. formula1(...) is distance(...), and
all its parameters are referenced. The program executes much slower,
probably because it isn't using dynamic runtime libraries for the time
being.
Improve valarray2d class (previously matrix)
Rename matrixio(.h, .cpp) -> cvInterface(.h, .cpp)
Improve bucket class (previously ABW)