Code for patricia

Pushing the code for patricia that is compilable with the server.c
separated the data structures and macros and put them in the header
file for the patricia which can be consumed by the server as well.