[feat] add complexity test for average and median
[refactor] cleand up the median and average function
[feat] divieded averge and median test
[minor] change the test output from s to ms
[doc] add diagrams and finised doc