Perceptron: Bug fixes for cost-sensitive pa-perceptron