A greedy approach to compute a minimum cycle basis of a directed graph