[ update ] use ycc for indexing and distance computation