algorithm: langford-sequence: adding code for langford sequence