added new apd functions (fast_apd and converntional_apd) and altered functions to facilitate the usage of the four methods. Incorporated changes from the exact branch including a new _end character.
added Fernando's alterations to the epd and variance calculations