Gateway Algorithms and Data Structures