berycentric triangle computation added to algorithms