Basic Implementation of Windowed Sorting