new function bergmanFanMatroid