added factory for CascadeClassifier
refactored packages