setupMaster function

Setup a computation master