Dynamically allocate commit titles to reduce memory usage

References #160