Alternate numbers with Threads