User:Brooks-Iyengar/Brooks-Iyengar Algorithm