Added is_in_queue() to check if a process with PID is in the list

Used is_in_queue() in join() to check if another process is completed