add method for checking if two version ranges intersects

Signed-off-by: Mattias Andrée <maandree@operamail.com>