Add namespace to triangle exercise.

... to be consistent with other examples. See PR #4 & PR #7. Changes non-ns function `triangle` to `triangle/type`.