I can solve a cube in under 3 min. I just have the steps memorized that came with the cube. If you go to their site you can download the pdf version. I would just implement those steps in the program. You are dealing with rotating data on 3 axis, so I have no idea how you'd code it, yet...