Our code

This is our algorithm.