linearClassifier now makes multiple updates for each block of the trainng data instead of just one