Hex makegrid() function in PL/SQL