Added new getter and setter methods for use in sorting algorithms