The vertices of a triangle ABC are A(2, 3, 1), B(-2, 2, 0) and C(0, 1, -1). Find the cosine of angle ABC.