fix bug
fix big
add parallel programming. hope this can improve performance