more doc
add big O comments to headers