Copy of algorithm from paper "Do clone code matter?" by Elmar Juergens et al. Goal is to convert it to PHP and add to phpcpd tool. Algorithm is token based.