chapter 7 algorithm 35 implemented
... and added

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