Updated cube root code