Serial and Parallel Codes for the Global Optimization Algorithm DIRECT