Implementation of a fast suboptimal algorithm for cycle basis