Finding directions of vectors