Add first difference implementation