outline of voting and pose clustering algorithm