Groupoids Associated with the Ternary Ring of a Projective Plane