/4.0 replaced with *0.25, since division is slower than multiplication
added alternative compiler flags for use with valgrind