Minor edit: Make sample variance function cleaner