Gated Recurrent Unit Algorithm