Please find the code at https://bitbucket.org/abeln/hb-lattice/downloads