Fast Updating Algorithms for TCAMs