Performance boost

Added newly tested codes for faster solving