triangle stuffffff
notes included from discussion with Alan
create law_of_cosines function and positions array