Dictionaries for approximation of binary classification tasks by sparse networks