implemented median() method
added BIF ArrayMedian(array)
added testcase
Merge pull request #380 from igal-getrailo/jira-2385

solved ticket 2385