Added a naive algorithm, and some speed-ups to the report.