added Rmath library