Diagnosing vector mem. problem