chapter 7 algorithm 34 implemented

Signed-off-by: Friker <viktor.tomkovic@gmail.com>