added version which uses cache-blocking (...-optimized.cpp)