find angle between two lines whose direction cosines are given