Zero Directions

Added functionality to calculate zero directions