Add package file, rewrite import.

Use `github.com/sjwhitworth/golearn/base` to import, so we can just `go get ./...` to build whole packages.