Replace map with array in traditional bottom-up.