debugged convrectifiedlinear(Layer) and modified MonitorBasedSaveBest to accept gains (as opposed to costs)