added space and time and big O description