Improvement in perceptron_with_bias