implemented and added new basic algorithm

- find median of an unsorted array