C++11 implementation of the supervised descent optimisation method