Source code accompanying the paper