Add isTriangular, isPentagonal and isHexagonal utility functions.
Solve #46. Fast and nicely readable.