Implementation of the reuse distance model according to Bennett and Kruskal's Algorithm with a partial sum tree