Added collinearity test for 3-D points