Julia performance improvements: now comparable to C3

This is now on par with C3 on my computer (~400-500 ms, C3 compiled with GCC), by moving `trades` inside the calling function. Global objects are a performance gotcha in Julia at the moment. I also use `@inbounds` to turn off bounds checks because the indices are known to be safe.