function a-indices optimised, got slightly better performance
function a-indices optimised, got slightly better performance. jar file created