Fixed bug in adt and standard deviation