Title: An efficient algorithm for calculating the quark propagators using Migdal-Kadanoff transformation