Implementing a memory function for the Optimal Binary Search Tree problem