Port over code from previous Blosc library

expand tests and add a simple perf benchmark