added pseudocode for splitting, gathering