Implements the Perception learning algorithm used for Machine Learning in Artificial Intelligence.