fixed an edge case happening when processing a partial message with an incomplete magic number
minor cleanings and fixed a corner case
introduced a small banchmarking tool

(written in C and using the same i/o logic used by libshardcache itself)