compiled to C, tuned, 5x-7x faster