perceptron done, complete with vector orientation bullshit