Added gradient update function for vocab matrix.