Add algorithms for Cache() constructor and add(...requests) method