Fixing some problems with Git
Fixed a bug in the median filtering