sorry for not choosing from foreign ones but i do not have a huge seen-list in foreignfilms, so here is my recommendation The Pi ( Darren Aronofsky ); a great indie film as the debut of Aronofsky, it is on the top of my top20 list and it exactly fits your desire; story of mentally ill but at the same time genious Max Cohen...
