Fix bug in linalg.eye.

linalg.eye fails for larger N.
Merge pull request #71 from untom/fix_eye

Fix linalg.eye() to work for N >= 128, use fewer threads.