Try this references http://scitation.aip.org/content/aip/journal/jmp/16/10/10.1063/1.522426?ver=pdfcov and http://journals.aps.org/pre/abstract/10.1103/PhysRevE.57.7274 which describe the algorithms you may need.