piece saving into heap implemented
file flushing implemented
min piece id requesting implemented
cli merged