Multi-purpose implementation of Vapnik's Support Vector Machine in C++