Frozen algorithms: how the brain's wiring facilitates learning