fixed mean to work under any case.
completed median and started working on the quartiles.