Psychophysics C# implementation of a staircase algorithm and the quest algorithm used to determine an individual's threshold for detecting a stimulus