committing old code from sourceforge (http://permeate.sourceforge.net/)