general parallel for implementation
pfor basic tests