fixed warning about uninitialized variable in openmp loop
added more code for range support
changed name of parameter: it's called a triangular matrix