Add triangle exercise

Add triangle exercise. Based tests off of Haskell implementation.