prototype of multicore on R working in Windows
refactor multicore into modTest
add test for windows and error
finish tests