Modeling, inference and clustering for equivalence classes of 3-D orientations