Previous research had identified only cases in which bacteria
as a whole, filled with magnetic particles, are being oriented like
compass needles for
swimming in the right direction.
As an alternative it's not a bad idea to
swim to the most Southernmost pillar (if you went from the easy beach entry south of the pier) for your return and head back via a predetermined
compass bearing or rough direction, which you can determine from the slope of the reef.