construction for given sides and one diagonal