Feature/cherry pick bb array

Cherry-picked from PR 576 https://github.com/caskdata/cdap/pull/576 that was against develop branch.