Image Tracking algorithms in Matlab and C