Modified implementation to use netlib
removed unnecessary header