Ab initio Simulations of Fe and TiC clusters