Worm generation updates

Skeleton is firstlky prepared for computation:
1) if skeleton consist of only 2 nodes third node will be introduced
2) if root node of skeleton is not a leaf skeleton will be reordered
-worm skeleton straightening impolemented
-worm algorithm outlined in functions