Changed input to be io.Reader to take generic keys

TODO: Go test fails. Changes to be made to radix_test.