Implemented factory pattern for creating the LSB algorithms.