A simple algorithm for calculating values for folded normal distribution