Made methods public
Added sorting tests