Templates and example code used for cluster computing and other high performance computing applications