got a hopefully memory efficient version working - with numpy
added necessary files