Refactored SLAM to use difffferent number of phases in oscillators