Fast multiple information retrieval algorithm for X-ray grating-based Imaging