Added a basic classifer training framework.