misclassification function

Calculate misclassification error