J-Parallel, a simple api for multicore programming