Analysis of heart failure patient trajectories using sequence modeling