Algorithm 34 implemented

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