Factory and basic implemenatations

Added a factory class and basic implementations of different LVQ types.