implementing maxValue function in the PerceptronRank class
Implementing maxValue and training methods