Math.variance using Option.flatMap