Computability of the Minimal Genus on Second Homology