fix algos to use dims instead of old shape call in arrays. references #29