moved numeric utilities
fixed memory leak