calculates shilouette coefficient