QuasiNet: a neural network with trainable product layers