Add store method to AlgorithmRes.