Title: A general model for matroids and the greedy algorithm