added unit testing for the calctexture method. The standard deviation is calculated in two different ways now, one that mirrors the C code, and one that is a more tradional standard deviation calculation. Unit testing resulted in 1 bug (issue #32) being discovered, and 1 unexplained minor difference between the C code result and its Java counterpart (sometimes there's a difference of 1 between the two)