working "ready" implmentation.

has an array which marks if elements are ready or not. wait forever if
they are not ready yet.