Task 5 concurrent mark sweep with 2 threads