Added custom memory allocator to x86.cs

- Same performance, zero heap