add first cut at parallel maxloc, adding random tests