What have you tried and where did you run into trouble?
Can you describe in words what needs to be done? Perhaps listing a series of steps that you would follow if you were doing the process by hand would help?
Premature optimization is the root of all job security