clean up math routines. All routines work on pointers now.