Java: Linear regression displays output