Greatest Common Factor And Least Common Multiple Using Factor Trees