A simple framework to run function parallel