Updated some images, updated bibliography and updated with new text about the algorithm.