change unsafe_view to view

I pulled the latest julia and clustering package and saw some deprecation warnings to change the unsafe_view function to use the view function. I ran the tests and it seems to still work.