added c version of ip lookup
added c version of ip lookup