fixing optunity.pipeds interface to the new API and updating matlab wrapper