A two-dimensional FLIP solver