Efficient Methods for Accurate Sparse Trajectory Recovery and Map Matching