added tests for triangle area calculation
added function for triangle area calculation