adding QDA layer over pairwise perceptrons