almost all needed functions have pseudocode now

only determination of links for each level need to be done, and the case
n=4 matchcriteria part.