Krichever correspondence for algebraic varieties