A simple 2D fluid simulator based on Stam's work