modified prior matrix calculaion to be faster and more accurate, also added best network calculator