Wave Equation Based Stencil Optimizations on a Multi-core CPU