A sparse H-matrix arithmetic: general complexity estimates