Added inverted indexind as well as interreflections detection