massive improvement to flexibility of mvfrontier. Now takes any function with optional arguments.