A Random Access Reconfigurable Metamaterial and a Tunable Flat Lens