Basic data structure optimization challenge.