A training algorithm for optimal margin classifiers