ArrayList implementation skeleton