[Olena-patches] [Olena] #184: Clean the bread-first thinning (skeleton) algorithm