Text this: A Novel Algorithm for Enhancing Terrain-Aided Navigation in Autonomous Underwater Vehicles