AI::NNFlex - A base class for implementing neural networks