PatternMatch implemented. Returns list of all indexes in reverse order