Performance tuning on scala program. Incorporate MTJ/netlib implementation.