Added objective computation for structured perceptron