Added correct set exceptions
Corrected variance() function
Corrected variance() function