formatting
introduce bounds helper
closest partition problem