Algorithm updates

Extending the algorithm to cover for special cases as
1) root node not having childs - done
2) root not being BNP - done
3) the skeleton represents a worm (no BNPS)- in progress