Add buffer pointer-to-index and index-to-pointer array functions