add pickle support to Buffer

close #113