Changes in the algorithms Mira and Averaged perceptron