Added more code related to BPredPerceptron, and I also clear the code to see more conveniently