rank9: select almost works
rank9: Fix off-by-one
rank9: Fix index calculation
Move div_ceil to utils