rework log_of_number to include base