feedforward function(without biases)