changed MapLabel implementation to use array instead of HashMap