RPROP finaly working, batch back prop was not working as expected so I fixed it, I got rid of all the array list operations.

It seems gradient should be set to 0 after each epoch that's why RPROP was not working.