A Hypothesis-Frame System for Recognition Problems