Added a function to get the stem's direction in relation to another stem