Added primality test.
Added triangle test method.
Merge pull request #1 from mikeMoreno/master

Updated MathAlgorithms.cs