Refactor putEntry

Refactor putEntry in radix.go