rewrote the conditions to calculate border radius of triangle

Greater flexibility has been provided.
- User can input two radii as well. Third one will be taken as zero.