stack no longer an array of objects, but an object with two properties (back, front) that are themselves arrays