Added a debug less removed by accident.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>
Removed a remnant of a debugging output.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>
permutation tests and bug fixes.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>
Added a missing file.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>
Fixed some bugs.
Added more tests.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>