Implemented alternative recursion (via replication) for S_2.