An Exact and Heuristic Approach for the Ship-to-Shore Problem