port over code form other previous Blosc library, expand tests and add a simple perf benchmark