added int/stacks/v1
added int/stacks/v2
and fixed many bugs in sfract.cc
extended sfract.cc and written more test code.