1a: joined worker/masterworker
1d: reworked remote version of getmax
1d: once again renaming
1c: prototype
1b: scope changes
1a: bugfic for count==1