added serial and sse+openmp implementations