Project Euler #102: Triangle containment