Compiled with -O3 and ran tests. Now very close to std :(