implemented SSFT algorithm