Fixed bug in algorithm loading code.
Added setuptools infrastructure.