Perceptron: Add debug code for cost-sensitive pa-perceptron