Basic implementation of RMSProp