Implement basic init and exit function of knote

  1. basic memory allocation
  2. knote structure define