Added the compiling flag for MacOS Clang (-std=c++11)
Fixed errors on dimensions