Porpoises plan their dives and can set their heart rate to match