Added relative error change check to RProp

This is a new and better early stopping condition. By default, if the
error over the last 100 epochs did not change by more than 1%, the
training is terminated. The fraction is user changeable.
Added wrappers for relative error change

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>