Non functional attempt at counting semaphores implementation of wave equation