A real-time matching algorithm using sparse matrix. (3rd December 2019)