New algoritm using modulo to determine missing numbers, still fails on timeout