Relative algebroids and classification problems for geometric structures