Parallel and hierarchical decision making for sparse coding in speech recognition