Homological scaffold via minimal homology bases