working GPU decoding of graycode in about 8ms per frame
added median tree test, is functional