Redesigned a MS Excel macro to run faster and more efficiently. Developed algorithms in C to use raw data and generate probability distribution tables, calculate angle and distance ranks, sort and filter results, and make selections based on probability density charts. Added features to analyze simulation and print results to a log file.Accomplishments include increased simulation speed by a factor of 3000. More efficient algorithms were developed for calculating angles. The results of the new code were that the number of file I/O instructions were reduced.