NOTE:

In comparison to the main paper, the following notational changes are made in the code:

1) Instead of $c_{nf}$ we use "nf".
2) Instead of $z$ we use "omega".
