pavo: added some basic lattice algorithms