Trajectory Prediction with Observations of Variable-Length for Motion Planning in Highway Merging scenarios