How did the early Great Barrier Reef manage rapid environmen