add new ray casting algorithm by Daniel Cohen for ~2x speedup (disabled by default)