added sequential and parallel codes
added sequential and parallel codes and merged with Cindy's