Use primitive array instead of ArrayList of wrappers