simplify len()
fixed a bug that was accidentally seeking wrongly in the file
added flush() method
Added two-dimensional indexing