comment out sorting methods for now, remove uncessary buffers that were allocated to stack