4th done half-way

In addition to previous solutions the calculation of probability
matrices is included.