Catalan Numbers and RNA Secondary Structures (refactored)

Modified the design to be in terms of functions.  Cleaned up unnecessary
if/else statements.  Converted loops to list comprehensions.