Fixed bug in relative error for UP case. Note the order of the getdifferences method call, it is important