Added mtie functions using bottleneck moving min / max

mtie_phase() is now about 50x faster, by using the moving window
functions from bottleneck.py. This adds a dependency, but we could
perhaps do some checks and only use bottleneck code if the user has
it installed?