Added alternative algorithm in triangles.py for finding triangles. Benchmark times are worse than 'filter items' on current data, but may be better asymptotically.