fixed vertex weight bug, added cpu simulation