Granular Materials As A Model For How Disordered Systems Adapt