AN EFFICIENT REPRESENTATION FOR SOLVING CATALAN NUMBER RELATED PROBLEMS