Array layout: now cleaner code and faster