Update law_of_sines_cosines.java

Expanded functionality (NEEDS TESTING)
Merge pull request #1 from asonix/patch-1

Update law_of_sines_cosines.java
Merge confirmed, thanks for the tips! Also, you were definitely right on ln69/91, that screwed me up when I was studying for my test... :/