SVMMaj algorithm