Added class for allocating typed arrays within a byte buffer