Moved mix() function to new mathUtil struct