Heavy quark production at the Fermilab Tevatron and DESY ep collider HERA using k(t) factorization with the CCFM evolution approach