To fix bug 179 I also did a big refactoring using numpy.dtype and numpy....

To fix issue #179  I also did a big refactoring using numpy.dtype and numpy.memap to avoid loop.

This should be really faster and less buggy.
This pass test but someone with real signals should have a look.