What kind of algorithm are you trying to implement?

1 
1