attempting different ways of passing outputarray between functions.
changed array stuff to pointers. should work in theory.
fixed some bugs
put in output, deleted test
calculated and added plane transformation algorithms
fixed some bugs...
output not working, but all 0s. :(