Stability problem of Ulam for generalized forms of Cauchy functional equation