Moved files around.

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

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

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

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

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