second moment of geometric distribution