Reconstruct Ship Trajectory via Vector Analysis and AIS Data