Fixed openmp to serial code
Fixed openmp a bit. Using vector instead of list