added getMedian() and empty()
added slerp