Updates on yield function, now properly scheduling using barrier at the end of the program
Added wait.c test program