get and bget pack and unpack

Applied same memory allocation for both get & bget pack and unpack as
the put (pack and unpack)