move eigen to dependency

edit corresponding makefile and code