listing from http://www.access2science.com/latex/Binary.html