Added MKL memory functions and updated mkl_build.sh

Added MKL memory functions 
  --free memory pool buffers
  --query memory use
  --disable memory pool
mkl_build.sh
  -updated build directories
  -added capabilities.cpp and memory.c to the compile commands