Update law_of_sines_cosines.java

Expanded functionality (NEEDS TESTING)