improved compute_wrapper to write two 0 to fill a gap (when no matches are available)