made raycasting accept a dictionary OR a sorted list of thresholds, created function in data for getting a sorted list of thresholds.