Add fast algorithm