problems: curve svg paths in tree template

corrected division by zero error in tree view
computed edge list and check if more than one parent has the same angle
modified tree template. TODO: curve the svg path