adding types.h defining commonly used types and changing mergesort type returnA