added segment push methods, tests, and usage
added segment push methods, tests, and usage