Update cache.s

Added algorithm