Factor out analyze/classify
Split off analyzer
Don't need to resize before libpuzzle