Restructure to library format
Added optimal class(Warning not complete)

Optimal class seems to currently have high fail rate.