Development of a Drilling Simulator to Achieve Drilling Optimization