Division operations on variable length elements in memory