Heavy quark impact factor at next-to-leading level