Algorithms For Computing The Lattice Size