Add code for computing Betti numbers; not debug yet
add more data to test betti number computation