Added cpu-implementation using OpenMP. At this moment cpu or gpu mode is compile-dependent, non-parameterized one.