The application of the in-tree knapsack problem to routing prefix caches