Optimization techniques for scientific computation in C/C++