added BufferAllocator
added BufferPool class
moved BufferPool management functions to public
now Allocator accepts GpuMat* instead of 3 pointers