generate X,Y vectors for NN