Implementation of the algorithm shingles