first version with k0L working with parallel processing and shared memory