Adaptive Nonmonotonic Methods With Averaging of Subgradients