Added support for an RPROP learning rule.

The implementation has been tested but it still needs to be optimized. I am particularly interested in any advice towards this end.