Added POW test and -O3 optimization flag