updated sequential and it is running much faster ~4s for 10000 numbers vs. ~15s before