neural network used for binary classification of 2-d inputs