Implementing a simple majority vote classifier