Added RPROP for optimization, added support for dropout