Predicting Lifetimes in Dynamically Allocated Memory