Trajectory Similarity Based Prediction For Remaining Useful Life Estimation