multiSVM function