Context-Aware Behavior Learning with Heuristic Motion Memory for Underwater Manipulation