Asymptotically Optimal Scheduling Algorithm for Compute-and-Forward