Reordered the wait in Buffer class. Still buggy
It's alive, aliiiive! Removed surnumerary semaphore and placed the wait better