Update SundialMath.java

added dayofyear and fixed stuff