stoikov: Use const references where appropriate

Signed-off-by: Aleksi Pitkäjärvi <aleksi.pitkajarvi@aalto.fi>