reimplemented KSequence without using persistent data structure for now; cleaned up useless methods