D branes in Landau-Ginzburg models and algebraic geometry