Cell theory for liquids solids and glasses: from local packing configurations to global complex behavior