standard deviation formula for grouped data direct method