Began implementation in beflux.cpp, and a simple test case in test.cpp.