Begin-heap and input is now one array.