Modeling User Dynamics for Item Recommendation