added ugly_number algorithm