Allow to override buffer size when mapping preallocated buffer to a vector
Update custom kernel example