implementing perceptron in numpy from scratch accompaniyng with textbook `Machine Learning: An Algorithm Perspective" by Stephen Marsland