calcAngles function

Calculate angles for points in first two columns.