should fix #4 by using parLapply or mclapply

needs to be checked on a windows machine